package com.lemner.ke;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.lemner.ke.activity.ChangePhoneActivity;
import com.lemner.ke.activity.DetailActivity;
import com.lemner.ke.activity.FeedbackActivity;
import com.lemner.ke.activity.ForgetPasswordActivity;
import com.lemner.ke.activity.HomeActivity;
import com.lemner.ke.activity.LoginActivity;
import com.lemner.ke.activity.MessageActivity;
import com.lemner.ke.activity.MineActivity;
import com.lemner.ke.activity.MyCollectionActivity;
import com.lemner.ke.activity.NameActivity;
import com.lemner.ke.activity.PersonalActivity;
import com.lemner.ke.activity.RegisterActivity;
import com.lemner.ke.activity.SettingActivity;
import com.lemner.ke.activity.VideoDetailActivity;
import com.lemner.ke.activity.WelcomeActivity;
import com.lemner.ke.base.BaseActivity;
import com.lemner.ke.base.TopBar;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 写代码前一定要pull !
 * 写代码前一定要pull !!
 * 写代码前一定要pull !!!
 */
public class MainActivity extends BaseActivity {
    @BindView(R.id.zt_button1)
    Button ztButton1;
    //张恺
    @BindView(R.id.zk_button1)
    Button zkButton1;
    @BindView(R.id.zk_button2)
    Button zkButton2;
    @BindView(R.id.zk_button3)
    Button zkButton3;
    @BindView(R.id.zk_button4)
    Button zkButton4;
    @BindView(R.id.zk_button5)
    Button zkButton5;
    @BindView(R.id.zk_button6)
    Button zkButton6;
    @BindView(R.id.zk_button7)
    Button zkButton7;
    @BindView(R.id.zk_button8)
    Button zkButton8;
    @BindView(R.id.zk_button9)
    Button zkButton9;
    @BindView(R.id.zk_button10)
    Button zkButton10;
    @BindView(R.id.zk_button11)
    Button zkButton11;
    @BindView(R.id.zk_button12)
    Button zkButton12;
    @BindView(R.id.zt_button3)
    Button ztButton3;
    @BindView(R.id.zt_button4)
    Button ztButton4;
    @Override
    public int getLayoutFile() {
        return R.layout.activity_main;
    }

    @Override
    public void initView() {
        TopBar topBar = findViewById(R.id.topbar);
        initImmersionBarForTopBar(topBar);

    }

    @Override
    public void initEvent() {
        ztButton1.setOnClickListener(this);
        ztButton3.setOnClickListener(this);
        ztButton4.setOnClickListener(this);
        //张恺
        zkButton1.setOnClickListener(this);
        zkButton2.setOnClickListener(this);
        zkButton3.setOnClickListener(this);
        zkButton4.setOnClickListener(this);
        zkButton5.setOnClickListener(this);
        zkButton6.setOnClickListener(this);
        zkButton7.setOnClickListener(this);
        zkButton8.setOnClickListener(this);
        zkButton9.setOnClickListener(this);
        zkButton10.setOnClickListener(this);
        zkButton11.setOnClickListener(this);
        zkButton12.setOnClickListener(this);
    }

    @Override
    public void initData() {

    }

    @Override
    protected void initSetting() {
        setTopBarEnable(false);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.zt_button1:
                startActivity(HomeActivity.class);
                break;

            //张恺
            case R.id.zk_button1:
                startActivity(MineActivity.class);
                break;
            case R.id.zk_button2:
                startActivity(SettingActivity.class);
                break;
            case R.id.zk_button3:
                startActivity(ForgetPasswordActivity.class);
                break;
            case R.id.zk_button4:
                startActivity(MessageActivity.class);
                break;
            case R.id.zk_button5:
                startActivity(ChangePhoneActivity.class);
                break;
            case R.id.zk_button6:
                startActivity(VideoDetailActivity.class);
                break;
            case R.id.zk_button7:
                startActivity(NameActivity.class);
                break;
            case R.id.zk_button8:
                startActivity(FeedbackActivity.class);
                break;
            case R.id.zk_button9:
                startActivity(LoginActivity.class);
                break;
            case R.id.zk_button10:
                startActivity(RegisterActivity.class);
                break;
            case R.id.zk_button11:
                startActivity(PersonalActivity.class);
                break;
            case R.id.zk_button12:
                startActivity(MyCollectionActivity.class);
                break;
            case R.id.zt_button3:
                startActivity(WelcomeActivity.class);
                break;
            case R.id.zt_button4:
                startActivity(DetailActivity.class);
                break;
            default:
        }
    }

}
